<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Delete by Id</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrclient.construct.html">SolrClient::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrclient.deletebyids.html">SolrClient::deleteByIds</a></div>
 <div class="up"><a href="class.solrclient.html">SolrClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="solrclient.deletebyid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SolrClient::deleteById</h1>
  <p class="verinfo">(PECL solr &gt;= 0.9.2)</p><p class="refpurpose"><span class="refname">SolrClient::deleteById</span> &mdash; <span class="dc-title">Delete by Id</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-solrclient.deletebyid-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.solrupdateresponse.html" class="type SolrUpdateResponse">SolrUpdateResponse</a></span> <span class="methodname"><strong>SolrClient::deleteById</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$id</code></span>
   )</div>

  <p class="para rdfs-comment">
   Deletes the document with the specified ID. Where ID is the value of the uniqueKey field declared in the schema
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-solrclient.deletebyid-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">id</code></em></dt>

     <dd>

      <p class="para">
       The value of the uniqueKey field declared in the schema
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-solrclient.deletebyid-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a SolrUpdateResponse on success and throws a SolrClientException on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-solrclient.deletebyid-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="solrclient.deletebyids.html" class="methodname" rel="rdfs-seeAlso">SolrClient::deleteByIds()</a> - Deletes by Ids</span></li>
    <li class="member"><span class="methodname"><a href="solrclient.deletebyquery.html" class="methodname" rel="rdfs-seeAlso">SolrClient::deleteByQuery()</a> - Deletes all documents matching the given query</span></li>
    <li class="member"><span class="methodname"><a href="solrclient.deletebyqueries.html" class="methodname" rel="rdfs-seeAlso">SolrClient::deleteByQueries()</a> - Removes all documents matching any of the queries</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrclient.construct.html">SolrClient::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrclient.deletebyids.html">SolrClient::deleteByIds</a></div>
 <div class="up"><a href="class.solrclient.html">SolrClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
